package com.service.business.order.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.service.dao.model.OrderProductHrCombo;
import com.service.dao.model.OrderProductHrComboDetails;
import com.service.dao.model.ProductHrCombo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 算力订单详情
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-10 22:06:11
 */
public interface OrderProductHrComboDetailsService extends IService<OrderProductHrComboDetails> {

    void createOrderDetail(ProductHrCombo hashRateCombo, Integer num, OrderProductHrCombo order);

    OrderProductHrComboDetails updateHrComboInterval(Integer orderId);

    /**
     * @Description: 统计当前用户币种的质押数量
     * @Author: ty
     * @Date: 2021/5/11 15:17
     * @param: [memberId, coinsName]
     * @return: java.math.BigDecimal
     **/
    BigDecimal totalPledgeNumByMemberIdAndCoins(Integer memberId, String coinsName);
}

